<jsp:root version="1.2" 
xmlns:jsp="http://java.sun.com/JSP/Page" 
xmlns:display="urn:jsptld:http://displaytag.sf.net"
xmlns:c="urn:jsptld:http://java.sun.com/jstl/core_rt"
xmlns:s="urn:jsptld:/struts-tags" >

	<form action="buscarAvancado.action" method="get">
		<div class="TbLEdit_row">
			<s:hidden name="nuPagina"></s:hidden>
			<label for="busca">
				Buscar:
			</label>
			<s:textfield name="txtBusca" id="busca" />
		</div>
		<div class="TbLEdit_row">
			<label for="secao"><s:text name="label.secao" />: </label>
				<s:select name="nuItemMenuSecao" id="secao"
					list="listItemMenu" 
					listKey="key" 
					listValue="value"
					cssClass="selectAberto"
					cssStyle="font-size: 1.1em;"
				/>
		</div>
		<div class="TbLEdit_btns">
			<input type="submit" name="btnBuscar" value="Ok"/><br />
		</div>
	</form>
	
	<c:set var="pagina"><s:text name="pagina.nome" /></c:set>
	<c:set var="conteudo"><s:text name="conteudo.nome" /></c:set>
	<c:set var="itemconteudo"><s:text name="itemconteudo.nome" /></c:set>
	<s:set name="list" value="resultados" scope="request" />
	
	<c:if test="${resultados==null}">
		NULL?
	</c:if>
	
	<display:table name="list" id="row" requestURI="buscar.action" pagesize="20">
		<display:column title="Resultados">
			<b>${row.titulo}</b>
			<a href="index.action${row.url}"><p>${row.conteudo}</p></a>
		</display:column>
		<display:setProperty name="paging.banner.item_name">
				item
			</display:setProperty>
    		<display:setProperty name="paging.banner.items_name">
    			<s:text name="itens" />
    		</display:setProperty>
			<display:setProperty name="paging.banner.one_item_found">
		      <![CDATA[
		        <span class="pagebanner">Apenas 1 {0} encontrado</span>
		      ]]>
		    </display:setProperty>
			<display:setProperty name="paging.banner.some_items_found">
		      <![CDATA[
		        <span class="pagebanner">{0} {1} encontrados, mostrando {2} at&eacute; {3}</span>
		      ]]>
		    </display:setProperty>
		    <display:setProperty name="paging.banner.all_items_found">
		    	<![CDATA[
		    		<span class\="pagebanner">{0} {1} encontrados, mostrando todos {2}.</span>
		    	]]> 
		    </display:setProperty>
		    <display:setProperty name="paging.banner.full">
		      <![CDATA[
				<span class="pagelinks">
		        [<a href="{1}">Primeira</a>/<a href="{2}">Anterior</a>]
		        {0}
		        [<a href="{3}">Pr&oacute;xima</a>/<a href="{4}">&Uacute;ltima</a>]
		        </span>
		      ]]>
		    </display:setProperty>
	</display:table>
	<div>
		<p>
			<strong>Palavras Chave:</strong>
		</p>
		<ul>
			<s:iterator id="pc" value="listPalavraChave">
				<li><a href="buscarAvancado.action?palavraChave.id=${pc.id}&amp;nuPagina=${nuPagina}" title="${pc.ocorrencias} itens">${pc.nome} (${pc.ocorrencias})</a></li>
			</s:iterator>
		</ul>
	</div>
</jsp:root>